$(function(){
    $('img').click(function(e) {
    	// Act on the event
    	$("#bigimages").modal('show');
    	var path = $(this).attr('src');
    	$("#bigimages img").attr('src', path);
    });
});